Skip to content

Conversation

@shaykeren
Copy link

This PR fixes the WebJar path misconfiguration in the PetClinic service. The application is using npm-based WebJars (org.webjars.npm:bootstrap) but was attempting to access resources using classic WebJar path structure.

Changes made:

  • Updated WebJar paths in layout.html to match npm structure
  • Changed from /webjars/bootstrap/5.2.3/dist/js/bootstrap.bundle.min.js to /webjars/bootstrap/js/bootstrap.bundle.min.js

This fixes the error:

  • Error ID: 1251351a-4449-11f0-90fe-0242ac160004
  • Error Type: org.springframework.web.servlet.resource.NoResourceFoundException
  • Error Message: No static resource bootstrap/5.2.3/dist/js/bootstrap.bundle.min.js

Testing:

  • Please verify that the bootstrap resources load correctly after this change
  • Check that the frontend styling and JavaScript functionality works as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants